//拼接接口域名
export const getBaseUrl =(url)=>{
  let base_url = 'http://www.paidan.cn/'
  //开发环境
  // url.includes('/api/')  判断请求url
  // if(process.env.NODE_ENV ==='development'){
  //   base_url = ''
  // }else{
  //   //生产环境
  //   base_url = ''
  // }
  return base_url + url
}

//请求响应码
export const HTTP_STATUS = {
  SUCCESS: 200,
  CLIENT_ERROR: 400,
  AUTHENTICATE: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  SERVER_ERROR: 500,
  BAD_GATEWAY: 502,
  SERVICE_UNAVAILABLE: 503,
  GATEWAY_TIMEOUT: 504
}